const ipPrefix = window.location.protocol;
const ip = window.location.hostname;
const port = 8080;
//const port = window.location.port;
const urlFull = ipPrefix + "//" + ip + ":" + port;

//login.html
const loginUrl = urlFull + "/" + "login";


//xinjianyanlian.html

//获取列表 initTable
const xinjianyanlian = {};
xinjianyanlian.initTableUrl = urlFull + "/" + "generator/basicdrill/list";
xinjianyanlian.updateDrillStateUrl = urlFull + "/" + "generator/basicdrill/updateDrillState";
xinjianyanlian.listVoUrl = urlFull + "/" + "generator/basicdrill/listVo";
xinjianyanlian.saveUrl = urlFull + "/" + "generator/basicdrill/save";
xinjianyanlian.updateUrl = urlFull + "/" + "generator/basicdrill/update";
xinjianyanlian.deleteUrl = urlFull + "/" + "generator/basicdrill/delete";

const canyanrenyuanguanli = {};
canyanrenyuanguanli.initTableUrl = urlFull + "/" + "generator/drillgroupuser/list";
canyanrenyuanguanli.updateUrl = urlFull + "/" + "generator/drillgroupuser/update";
canyanrenyuanguanli.deleteUrl = urlFull + "/" + "generator/drillgroupuser/delete";
canyanrenyuanguanli.saveUrl = urlFull + "/" + "generator/drillgroupuser/save";

const kaohekemuguanli = {};
kaohekemuguanli.initTableUrl = urlFull + "/" + "generator/drillsubject/list";
kaohekemuguanli.updateUrl = urlFull + "/" + "generator/drillsubject/update";
kaohekemuguanli.deleteUrl = urlFull + "/" + "generator/drillsubject/delete";
kaohekemuguanli.saveUrl = urlFull + "/" + "generator/drillsubject/save";
kaohekemuguanli.saveListUrl = urlFull + "/" + "generator/drillsubject/saveList";


const yonghuguanli = {};
yonghuguanli.initTableUrl1 = urlFull + "/" + "generator/basicmanageuser/listAll";
yonghuguanli.saveUrl1 = urlFull + "/" + "generator/basicmanageuser/save";
yonghuguanli.updateUrl1 = urlFull + "/" + "generator/basicmanageuser/update";
yonghuguanli.deleteUrl1 = urlFull + "/" + "generator/basicmanageuser/delete";
yonghuguanli.initTableUrl2 = urlFull + "/" + "generator/drillcheckuser/listAll";
yonghuguanli.saveUrl2 = urlFull + "/" + "generator/drillcheckuser/save";
yonghuguanli.updateUrl2 = urlFull + "/" + "generator/drillcheckuser/update";
yonghuguanli.deleteUrl2 = urlFull + "/" + "generator/drillcheckuser/delete";

const kemumobanguanli = {};
kemumobanguanli.initTableUrl = urlFull + "/" + "generator/basicsubjecttemplate/listAll";
kemumobanguanli.saveUrl = urlFull + "/" + "generator/basicsubjecttemplate/save";
kemumobanguanli.updateUrl = urlFull + "/" + "generator/basicsubjecttemplate/update";
kemumobanguanli.deleteUrl = urlFull + "/" + "generator/basicsubjecttemplate/delete";
kemumobanguanli.initModelNameUrl = urlFull + "/" + "generator/basicsubjecttemplate/getModelNameAll";

const chengjiguanli = {};
chengjiguanli.initTableUrl = urlFull + "/" + "generator/drillsubjectscore/listAll";
chengjiguanli.saveUrl = urlFull + "/" + "generator/drillsubjectscore/save";
chengjiguanli.updateUrl = urlFull + "/" + "generator/drillsubjectscore/update";
chengjiguanli.deleteUrl = urlFull + "/" + "generator/drillsubjectscore/deleteOne";
chengjiguanli.getScoreCountByUuidUrl = urlFull + "/" + "generator/drillsubjectscore/getScoreCountByUuid";
chengjiguanli.getDrillByHasScore = urlFull + "/" + "generator/drillsubjectscore/getDrillByHasScore";